package net.sareweb.acab.actions.user;

import net.sareweb.acab.entity.*;
import java.util.ArrayList;
import java.util.List;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityHome;

@Name("userDetails")
public class UserDetails extends EntityHome<User> {

	public void setUserIdUser(Integer id) {
		setId(id);
	}

	public Integer getUserIdUser() {
		return (Integer) getId();
	}

	@Override
	protected User createInstance() {
		User user = new User();
		return user;
	}

	public void load() {
		if (isIdDefined()) {
			wire();
		}
	}

	public void wire() {
		getInstance();
	}

	public boolean isWired() {
		return true;
	}

	public User getDefinedInstance() {
		return isIdDefined() ? getInstance() : null;
	}

	public List<Commentonsuggestion> getCommentonsuggestions() {
		return getInstance() == null ? null
				: new ArrayList<Commentonsuggestion>(getInstance()
						.getCommentonsuggestions());
	}

	public List<Seat> getSeats() {
		return getInstance() == null ? null : new ArrayList<Seat>(getInstance()
				.getSeats());
	}

	public List<Request> getRequests() {
		return getInstance() == null ? null : new ArrayList<Request>(
				getInstance().getRequests());
	}

	public List<Dialog> getDialogs() {
		return getInstance() == null ? null : new ArrayList<Dialog>(
				getInstance().getDialogs());
	}

	public List<Evaluation> getEvaluations() {
		return getInstance() == null ? null : new ArrayList<Evaluation>(
				getInstance().getEvaluations());
	}

	public List<Travel> getTravels() {
		return getInstance() == null ? null : new ArrayList<Travel>(
				getInstance().getTravels());
	}

	public List<Avatar> getAvatars() {
		return getInstance() == null ? null : new ArrayList<Avatar>(
				getInstance().getAvatars());
	}

	public List<Comment> getComments() {
		return getInstance() == null ? null : new ArrayList<Comment>(
				getInstance().getComments());
	}

	public List<Match> getMatchs() {
		return getInstance() == null ? null : new ArrayList<Match>(
				getInstance().getMatchs());
	}

}
